<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-if</title>
</head>
<body>
<div id="app">
    <h3 v-show="isShow">展现一个变化的数据</h3>
    <!--  通过按钮切换状态  -->
    <button @click="isShow = ! isShow">切换</button>
</div>
<script src="../js/vue.js" ></script>
<script>
    const app = new Vue({
        el: '#app',
        data: {
            isShow: true
        }
    })
</script>
</body>
</html>